/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package pong;

interface PongDataHandler
{
    public void receivePaddle(VerticalDirection d);
    public void receiveBall(Ball b);  
}
/**
 *
 * @author Simcha Michal
 */
public interface Comm {
    /**
     * Connects as either server (first option) and then as client
     */
    public void connect(PongDataHandler handler);
    public void sendPaddle(VerticalDirection d);
    public void sendBall(Ball b);
    public void disconnect();
}
